home *** CD-ROM | disk | FTP | other *** search
- From: RMarlowe@msn.com (Roger Marlowe)
- Subject: Nested templates in MSVC 4?
- Date: 9 Mar 96 16:30:09 -0800
- Message-ID: <00001a81+0000abe7@msn.com>
- Path: news.msn.com!msn.com
- Newsgroups: comp.lang.c++
- Organization: The Microsoft Network (msn.com)
-
- This doesn't seem to work in MSVC++ 4.0.
-
- template <class T>
- class generic_type
- {
- T data;
- };
-
- template <class T>
- class array
- {
- T* ptr;
- int length;
- };
-
- int main()
- {
- array<generic_type<int>> arr;
- return 0;
- }
-
- Perhaps there's a software switch somewhere that I need to throw for
- ANSII compatability or something??
-
- Do any MSVC++-O-philes know if I am doing somthing wrong...
- or has Microsoft left nested templates out of their pretty, new package??
-